﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RuEn
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple=true,Inherited=false)]
    public class CustomRule : Attribute
    {
        public CustomRule()
        {
        }

        public bool Validate()
        {
            //Add logic for Custom Rule, like adding rules to a XML file or a Database
            //through a UI. This can be extended to create a Enterprise Rules Engine where
            //the organization can keep a rule in a centeralized location and all apps gets 
            //validated against those rules.
            return true;
        }
    }
}
